
import request from '@/utils/request';
import { ResultIPageNews } from './definitions/ResultIPageNews';
import { NewsParam } from './definitions/NewsParam';
import { Result } from './definitions/Result';


export class NewsShopApiController {

    static pageUsingPOSTPath: string = "/v1/shop/zixun/page";
    /// 资讯列表
    async pageUsingPOST(data: NewsParam, headers?: any):  Promise<ResultIPageNews> {
      return request(`/v1/shop/zixun/page`, {
        method: "POST",
        data: JSON.stringify(data) ,
        headers: headers,
      }) as Promise<any>;
    }
    
    static getUsingGETPath: string = "/v1/shop/zixun/{id}";

    async getUsingGET(id: string,  headers?: any) : Promise<any> {
      return request(`/v1/shop/zixun/${id}`, {
        method: "GET",
        headers: headers,
      }) as Promise<any>;
    }
    
}